package org.example.common.core.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author : [Pashm]
 * @version : [v1.0]
 */
@Data
public class BaseEntity {
    //创建人id
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //修改人id
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
